//
//  MJCenterLineLabel.m
//  MeiTuan
//
//  Created by kimi on 16/9/19.
//  Copyright © 2016年 kimi. All rights reserved.
//

#import "MJCenterLineLabel.h"

@implementation MJCenterLineLabel


// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
    //方法1，画一条一像素的线
    
    //方法2，高度1的矩形，这里矩形比较方便
    [super drawRect:rect];
    
    UIRectFill(CGRectMake(0, rect.size.height * 0.5 - 0.5, rect.size.width, 1));
}


@end
